// 配置router
// 忽略文件中所有警告
// /* eslint-disable */

import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect:'/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('@/views/Home.vue'), // 使用路由懒加载优化访问性能
  
  },
  {
    path: '/aboutUs',
    name: 'About us',
    component: () => import('@/views/aboutUs.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Solutions',
    name: 'Solutions',
    component: () => import('@/views/Solutions.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Anesthesia',
    name: 'Anesthesia',
    component: () => import('@/views/Anesthesia.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/XRay',
    name: 'XRay',
    component: () => import('@/views/XRay.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Ultrasound',
    name: 'Ultrasound',
    component: () => import('@/views/Ultrasound.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Endoscopy',
    name: 'Endoscopy',
    component: () => import('@/views/Endoscopy.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Surgerydevices',
    name: 'Surgery devices',
    component: () => import('@/views/Surgerydevices.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/ElectrosurgicalUnits',
    name: 'ElectrosurgicalUnits',
    component: () => import('@/views/ElectrosurgicalUnits.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Monitorsandpumps',
    name: 'Monitorsandpumps',
    component: () => import('@/views/Monitorsandpumps.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Operationlights',
    name: 'Operationlights',
    component: () => import('@/views/Operationlights.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Operationtables',
    name: 'Operationtables',
    component: () => import('@/views/Operationtables.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/UltrasonicScalpels',
    name: 'UltrasonicScalpels',
    component: () => import('@/views/UltrasonicScalpels.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Service',
    name: 'Service',
    component: () => import('@/views/Service.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Supports',
    name: 'Supports',
    component: () => import('@/views/Supports.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Supports16',
    name: 'Supports16',
    component: () => import('@/views/Supports16.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Supports17',
    name: 'Supports17',
    component: () => import('@/views/Supports17.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Contacts',
    name: 'Contacts',
    component: () => import('@/views/Contacts.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Conditions',
    name: 'Conditions',
    component: () => import('@/views/Conditions.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/Privacy',
    name: 'Privacy',
    component: () => import('@/views/Privacy.vue') // 使用路由懒加载优化访问性能
  },
  {
    path: '/FormEmail',
    name: 'FormEmail',
    component: () => import('@/views/FormEmail.vue') // 使用路由懒加载优化访问性能
  },
]
const router = createRouter({
  // history: createWebHistory(), // 使用history模式
  history: createWebHashHistory(), // 使用hash模式
  routes
})
export default router
